package com.ruoyi.asset.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.text.DecimalFormat;
import java.util.Date;

/**
 * 资产信息对象 asset_detail
 * 
 * @author ruoyi
 * @date 2019-10-23
 */
public class AssetDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private int id;

    /** null */
//    @Excel(name = "卡片编号",type = Excel.Type.EXPORT)
//    private String idStr;

    /** 搜索值 */
    private String searchParam;

    /** 资产名称 */
    @Excel(name = "资产名称")
    private String assetName;

    /** 资产编码 */
    @Excel(name = "资产编码")
    private String assetCode;

    /** 卡片编号 */
    @Excel(name = "卡片编号")
    private String assetNo;

    /** 资产类别 */
    @Excel(name = "资产类别")
    private String assetType;

    /** 消耗类型：1：固定资产，2：消耗品，3：其他 */
    @Excel(name = "消耗类型",readConverterExp = "1=固定资产,2=消耗品,3=其他")
    private String consumeType;

    /** 图片数量 */
    private int imgCount;

    /** 所属组织 */
    @Excel(name = "所属组织",type = Excel.Type.IMPORT)
    private String companyId;

    /** 所属组织名称 */
    @Excel(name = "所属组织",type = Excel.Type.EXPORT)
    private String companyName;

    /** 规格 */
    @Excel(name = "规格")
    private String specifications;

    /** 型号 */
    @Excel(name = "型号")
    private String assetModel;

    /** 数量 */
    @Excel(name = "数量")
    private Long amount;

    /** 单位 */
    @Excel(name = "单位")
    private String assetUnit;

    /** 价格 */
    @Excel(name = "价格")
    private Double price;

    /** 管理部门 */
    @Excel(name = "管理部门",type = Excel.Type.IMPORT)
    private String manageDept;

    /** 管理部门名称 */
    @Excel(name = "管理部门",type = Excel.Type.EXPORT)
    private String manageDeptName;

    /** 管理人 */
    @Excel(name = "管理人")
    private String manageUser;

    /** 使用部门 */
    @Excel(name = "使用部门",type = Excel.Type.IMPORT)
    private String deptId;

    /** 使用部门名称 */
    @Excel(name = "使用部门",type = Excel.Type.EXPORT)
    private String useDeptName;

    /** 使用人 */
    @Excel(name = "使用人")
    private String useUser;

    /** 使用地点 */
    @Excel(name = "存放地点")
    private String address;

    /** 投用时间 */
    @Excel(name = "开始使用日期",width = 30, dateFormat = "yyyy-MM-dd")
    private Date useDate;

    /** 录入时间 */
    @Excel(name = "录入时间", type = Excel.Type.EXPORT ,width = 30, dateFormat = "yyyy-MM-dd")
    private Date putDate;

    /** 资产情况 */
    @Excel(name = "资产情况",type = Excel.Type.EXPORT,readConverterExp = "1=在用,2=封存,3=闲置,4=报废")
    private String useStatus;

    /** 二维码 */
//    @Excel(name = "二维码")
    private String qrImg;

    /** 照片 */
    @Excel(name = "图片",type = Excel.Type.EXPORT)
    private String photo;

    /** 状态 */
//    @Excel(name = "状态")
    private String status;

    /** 创建人 */
    private String createByName;

    /** 开始时间 */
    private String beginDate;

    /** 结束时间 */
    private String endDate;

    private String flag;

    private String inventoryStatus;
    //是否报废
    private String scrapStatus;

    private String No;

    public String getNo() {
        return No;
    }

    public void setNo(String no) {
        No = no;
    }

    /** 盘点是否相符 1：相符，0：不相符*/
    private String agreementStatus;

    public String getScrapStatus() {
        return scrapStatus;
    }

    public void setScrapStatus(String scrapStatus) {
        this.scrapStatus = scrapStatus;
    }

    public int getImgCount() {
        return imgCount;
    }

    public void setImgCount(int imgCount) {
        this.imgCount = imgCount;
    }

    public String getInventoryStatus() {
        return inventoryStatus;
    }

    public void setInventoryStatus(String inventoryStatus) {
        this.inventoryStatus = inventoryStatus;
    }

    public String getAssetNo() {
        return assetNo;
    }

    public void setAssetNo(String assetNo) {
        this.assetNo = assetNo;
    }

    public String getAgreementStatus() {
        return agreementStatus;
    }

    public void setAgreementStatus(String agreementStatus) {
        this.agreementStatus = agreementStatus;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getConsumeType() {
        return consumeType;
    }

    public void setConsumeType(String consumeType) {
        this.consumeType = consumeType;
    }

    public String getSearchParam() {
        return searchParam;
    }

    public void setSearchParam(String searchParam) {
        this.searchParam = searchParam;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getCreateByName() {
        return createByName;
    }

    public void setCreateByName(String createByName) {
        this.createByName = createByName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getUseDeptName() {
        return useDeptName;
    }

    public void setUseDeptName(String useDeptName) {
        this.useDeptName = useDeptName;
    }

    public String getManageDeptName() {
        return manageDeptName;
    }

    public void setManageDeptName(String manageDeptName) {
        this.manageDeptName = manageDeptName;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public int getId()
    {
        return id;
    }
    public void setAssetName(String assetName) 
    {
        this.assetName = assetName;
    }

    public String getAssetName() 
    {
        return assetName;
    }
    public void setAssetCode(String assetCode) 
    {
        this.assetCode = assetCode;
    }

    public String getAssetCode() 
    {
        return assetCode;
    }
    public void setAssetType(String assetType) 
    {
        this.assetType = assetType;
    }

    public String getAssetType() 
    {
        return assetType;
    }
    public void setCompanyId(String companyId) 
    {
        this.companyId = companyId;
    }

    public String getCompanyId() 
    {
        return companyId;
    }
    public void setSpecifications(String specifications) 
    {
        this.specifications = specifications;
    }

    public String getSpecifications() 
    {
        return specifications;
    }
    public void setAssetModel(String assetModel) 
    {
        this.assetModel = assetModel;
    }

    public String getAssetModel() 
    {
        return assetModel;
    }
    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }
    public void setAssetUnit(String assetUnit) 
    {
        this.assetUnit = assetUnit;
    }

    public String getAssetUnit() 
    {
        return assetUnit;
    }
    public void setPrice(Double price) 
    {
        this.price = price;
    }

    public Double getPrice() 
    {
        return price;
    }
    public void setDeptId(String deptId) 
    {
        this.deptId = deptId;
    }

    public String getManageDept() {
        return manageDept;
    }

    public void setManageDept(String manageDept) {
        this.manageDept = manageDept;
    }

    public String getManageUser() {
        return manageUser;
    }

    public void setManageUser(String manageUser) {
        this.manageUser = manageUser;
    }

    public String getDeptId()
    {
        return deptId;
    }
    public void setUseUser(String useUser) 
    {
        this.useUser = useUser;
    }

    public String getUseUser() 
    {
        return useUser;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setUseDate(Date useDate) 
    {
        this.useDate = useDate;
    }

    public Date getUseDate() 
    {
        return useDate;
    }
    public void setPutDate(Date putDate) 
    {
        this.putDate = putDate;
    }

    public Date getPutDate() 
    {
        return putDate;
    }
    public void setUseStatus(String useStatus) 
    {
        this.useStatus = useStatus;
    }

    public String getUseStatus() 
    {
        return useStatus;
    }
    public void setQrImg(String qrImg) 
    {
        this.qrImg = qrImg;
    }

    public String getQrImg() 
    {
        return qrImg;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
//
//    public String getIdStr() {
//        DecimalFormat format = new DecimalFormat("0000000000");
//        return format.format(id);
//    }

//    public void setIdStr(String idStr) {
//        this.idStr = idStr;
//    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("assetName", getAssetName())
            .append("assetCode", getAssetCode())
            .append("assetType", getAssetType())
            .append("companyId", getCompanyId())
            .append("specifications", getSpecifications())
            .append("assetModel", getAssetModel())
            .append("amount", getAmount())
            .append("assetUnit", getAssetUnit())
            .append("price", getPrice())
            .append("deptId", getDeptId())
            .append("useUser", getUseUser())
            .append("address", getAddress())
            .append("useDate", getUseDate())
            .append("putDate", getPutDate())
            .append("useStatus", getUseStatus())
            .append("qrImg", getQrImg())
            .append("photo", getPhoto())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
